Skip to main content

iRidi for AV & Custom Systems

A set of tools for creating equipment control interfaces using TCP, UDP, WebSocket, HTTP(s), and RS232. Allows you to configure an arbitrary command list and obtain feedback using JavaScript

Documentation updated 01.01.2024

Description​

iRidi can send ASCII, DEC, and HEX commands over TCP, UDP, WebSocket, HTTP(s), and RS232 and receive feedback from equipment using JavaScript. Equipment commands can be configured without scripts; feedback requires scripts.

Configure commands for any equipment whose control has not previously been implemented in iRidi. Examples include a home theater, multiroom system, TV, DVD/BluRay, iTunes, XBMC, matrix switcher, and preamplifier. Equipment can be controlled directly over Wi-Fi or Ethernet, or through an IP-to-RS232 or IP-to-IR converter (such as Global Cache).

Licensing iRidi for AV & Custom Systems (details):

  • Device License Pro (AV & Custom Systems) is a license for one control panel. It allows you to send commands and process data from equipment connected through AV & Custom Systems drivers.
Tip

If several control panels need to connect to equipment and the equipment limits the number of simultaneous connections, use iRidi Server

Connection​

Equipment configuration and settings for iRidi to begin controlling equipment over IP.

Connection methods​

Depending on the control method supported by your equipment, you can select an AV & Custom Systems driver and configure it for the specific device.

AV & Custom Systems (Client)​

The entire main list of AV & Custom Systems drivers in iRidi consists of client-type drivers. They can connect to a "server", the automation system equipment, to send commands and receive data.

HowItWorksTCP.png

Depending on the control method, select:

  • AV & Custom Systems (TCP)
  • AV & Custom Systems (UDP)
  • AV & Custom Systems (HTTP)
  • AV & Custom Systems (SSH)
  • AV & Custom Systems (RS232)
  • AV & Custom Systems (Serial)
  • AV & Custom Systems (WebSocket)

AV & Custom Systems (TCP) connection parameters:

  • Host is the IP address or domain name
  • Port is the TCP connection port
  • Mode is the equipment connection mode
    • Always Connected: continuously connected
    • Connect when Sending: connected only while sending a command. Feedback does not work, but commands can be sent from different devices without occupying a connection
  • SSL enables/disables SSL
  • Auth type is the authentication type:
    • Basic: uses unencrypted base64 encoding,
    • Digest: credential encryption;
  • Script Mode determines where commands are sent
    • Direct and Script: send the command to the equipment immediately and also pass it to the script
    • Script Only: send the command only to the script (pressing a button will not send the command)
  • Disable Queue disables the iRidi command send queue so that data does not accumulate if sending encounters problems. 0 is false, 1 is true
  • Send Command Attempts is the number of attempts to send a command if delivery has not been confirmed; 0 means do not retry
  • Wait for Connection is the connection wait time (ms), after which another connection attempt is made
  • Wait for Data is the equipment response wait time (ms), after which the request is repeated and the connection checked. Set it to 0 if the driver should not disconnect from equipment when no data is received

AV & Custom Systems (UDP) connection parameters:

  • Host is the IP address or domain name
  • Port is the UDP connection port
  • Auth type is the authentication type:
    • Basic: uses unencrypted base64 encoding,
    • Digest: credential encryption;
  • Script Mode determines where commands are sent
    • Direct and Script: send the command to the equipment immediately and also pass it to the script
    • Script Only: send the command only to the script (pressing a button will not send the command)
  • Local Port is the UDP port opened on the control panel side (data from the controlled equipment arrives here). It may differ from the external port opened on the equipment side
  • Multicast enables multicast connection mode
    • Group is the multicast group

AV & Custom Systems (HTTP) connection parameters:

  • Host is the IP address or domain name
  • Port is the TCP connection port (usually 80)
  • Login / Password are the username and password for authentication, depending on the specified Auth type
  • SSL enables/disables SSL
  • User Agent is the identification string of the iRidi client application
  • Auth type is the authentication type:
    • Basic: uses unencrypted base64 encoding,
    • Digest: credential encryption;
  • Script Mode determines where commands are sent
    • Direct and Script: send the command to the equipment immediately and also pass it to the script
    • Script Only: send the command only to the script (pressing a button will not send the command)
  • Disable Queue disables the iRidi command send queue so that data does not accumulate if sending encounters problems. 0 is false, 1 is true
  • Send Command Attempts is the number of attempts to send a command if delivery has not been confirmed; 0 means do not retry
  • Wait for Connection is the connection wait time (ms), after which reconnection is attempted
  • Wait for Data is the equipment response wait time (ms), after which the request is repeated and the connection checked. Set it to 0 if the driver should not disconnect from equipment when no data is received

AV & Custom Systems (SSH) connection parameters:

  • Host is the IP address or domain name
  • Port is the TCP connection port
  • Login / Password are the username and password for authentication
  • Wait for Connection is the connection wait time (ms), after which reconnection is attempted
  • Wait for Data is the equipment response wait time (ms), after which the request is repeated and the connection checked. Set it to 0 if the driver should not disconnect from equipment when no data is received
  • Script Mode determines where commands are sent:
    • Direct and Script: send the command to the equipment immediately and also pass it to the script
  • Script Only: send the command only to the script (pressing a button will not send the command)
  • Disable Queue disables the iRidi command send queue so that data does not accumulate if sending encounters problems. 0 is false, 1 is true
  • Use PTY is a pair of pseudodevice endpoints (files) that establish an asynchronous bidirectional communication channel (IPC) (with two ports) between two or more processes. The master provides the means for the terminal emulator process to control the slave. The slave emulates a hardware text terminal device.
    • True: EVENT_RECEIVE_TEXT receives the current terminal line state and data packets received from equipment.
    • False: EVENT_RECEIVE_TEXT receives only data packets received from equipment.

AV & Custom Systems (RS232) connection parameters:

  • Port is the COM port number
  • Baud Rate is the data transfer rate
  • Data Bits is the number of data bits in a frame
  • Parity is the parity check.
  • Stop Bits is the stop bit in a frame
[In the web interface, stop bits are displayed as:]
iRidi studio:Web interface:
10
1,51
22
  • Auth type is the authentication type:
    • Basic: uses unencrypted base64 encoding,
    • Digest: credential encryption;
  • Script Mode determines where commands are sent
    • Direct and Script: send the command to the equipment immediately and also pass it to the script
    • Script Only: send the command only to the script (pressing a button will not send the command)

AV & Custom Systems (Serial) connection parameters:

  • Host is the IP address or domain name;
  • Used with iRidi device sets the host for the corresponding equipment (selecting this parameter disables the Host field);
  • Baud Rate is the data transfer rate with the controller;
  • Data Bits is the number of data bits in a frame;
  • Parity is the parity check;
  • Stop Bits is the stop bit in a frame (1; 1,5; 2);
[In the web interface, stop bits are displayed as:]
iRidi studio:Web interface:
10
1,51
22
  • HRDW Flow control is a flow control mechanism that forms part of the RS232 standard. It uses two additional pins on the RS232 connector, RTS (Request to Send) and CTS (Clear to Send). These lines allow the receiver and transmitter to notify each other of their status. Asserting and deasserting these lines allows device drivers implementing hardware flow control to maintain a reliable data connection between transmitter and receiver. The advantage is that data corruption during transmission does not affect the flow control mechanism (unlike Xon/Xoff). The parameter appears when "Used with iRidi device" = ProAV Processor Basic COM 1 (RS-232).
  • Script Mode determines where commands are sent.
Tip

Data packetization parameters (Delimeter, Packet length, Interval time) are described in the [Feedback]

AV & Custom Systems (WebSocket) connection parameters:

  • Host is the IP address or domain name.
  • Port is the TCP connection port (usually 80).
  • SSL enables/disables SSL.
  • Path is the resource path.
  • Headers is an optional field for adding keys to the header. You can enter multiple keys separated by line breaks.

AV & Custom Systems (Server)​

In addition to the main list, there are drivers for creating a TCP or UDP server based on the freely configurable AV & Custom Systems driver. They can only be created using JavaScript.

Information on creating drivers using JavaScript in iRidi.

Example of creating an AV & Custom Systems (TCP Server) driver.

Changing connection settings​

You need to change connection parameters when you disconnect from the automation site's Wi-Fi network and start using 3G or another Wi-Fi network. For control to continue working, switch from the local IP address to the Internet router's public IP address.

Switching is not automatic; you need to press the connection mode selection button. For remote access, the automation system's control ports must be made public. To do this, configure Port Forwarding on the Internet router. A VPN can provide a secure connection.

  1. Download the template (*.js) (right-click and save the linked file), then add the template to the script editor using (+) Add script from file

  2. Configure the script parameters as shown in the example:

function Internal_1() {
IR.GetDevice("AV & Custom Systems (TCP)").SetParameters({Host: "192.168.0.100", Port: 8080, SendMode: IR.ALWAYS_CONNECTED, ScriptMode: IR.DIRECT_AND_SCRIPT, DisableQueue: false, SendCommandAttempts: 0, ConnectWaitTimeMax: 0, ReceiveWaitTimeMax: 0});
}
function External_1() {
IR.GetDevice("AV & Custom Systems (TCP)").SetParameters({Host: "215.110.10.10", Port: 8081});
}

Copy the driver name from Project Device Panel; copy the parameter list exactly as shown in the example.

  1. Select the button that will switch between the Internal and External parameters. Open the macros editor for the Press event (Object Properties > Programming), select the Script call command, and double-click to add it. Select the name of the function the button will call:

Script_call_internal-external.png

Examples:

//AV & Custom Systems (TCP)
IR.GetDevice("AV & Custom Systems (TCP)").SetParameters({Host: "192.168.0.100", Port: 8080, SendMode: IR.ALWAYS_CONNECTED, ScriptMode: IR.DIRECT_AND_SCRIPT, DisableQueue: false, SendCommandAttempts: 0, ConnectWaitTimeMax: 0, ReceiveWaitTimeMax: 0, LogLevel: 0, BackgroundMode: 0});

//AV & Custom Systems (UDP)
IR.GetDevice("AV & Custom Systems (UDP)").SetParameters({Host: "192.168.0.100", Port: 6001, ScriptMode: IR.DIRECT_AND_SCRIPT, LocalPort: 8080, Group: "224.0.0.1", Multicast: 1});

//AV & Custom Systems (WebSocket)
IR.GetDevice("AV & Custom Systems (WebSocket)").SetParameters({Host: “192.168.0.100”, Port:80, Path:l_baseURL+"&token=" + l_Token, SSL: 0, Headers: “Sec-WebSocket-Extensions: client_max_window_bits”});

//AV & Custom Systems (HTTP)
IR.GetDevice("AV & Custom Systems (HTTP)").SetParameters({Host: "192.168.0.100", Port: 80, Login: "admin", Password: "pass", UseSSL: true, UserAgent: "iRidium", ScriptMode: IR.DIRECT_AND_SCRIPT, DisableQueue: false, SendCommandAttempts: 0, ConnectWaitTimeMax: 0, ReceiveWaitTimeMax: 0});

//AV & Custom Systems (RS232)
IR.GetDevice("AV & Custom Systems (RS232)").SetParameters({Port: 1, BaudRate: 19200, Bits: 8, Parity: "e", StopBit: 1, ScriptMode: 1});

Configuring commands​

AV & Custom Systems (TCP, UDP, RS232)​

AV & Custom Systems (TCP, UDP, RS232) commands have the same settings. They can send a data string to equipment in HEX, DEC, or ASCII format.

AV-TCP-CommandFeedback.png

  • Name is the command name. You can use it to call the command from a script
  • Data is the data sent to equipment by the command. It can be written in HEX, DEC, or ASCII format. Data formatting rules depend on the format
  • Disable Header is an advanced header setting. It is relevant only if you created a device in your own database and specified a preamble in its settings: a command portion added to any data entered in the Data field (see the database editor)

Feedback configuration:

  • Name is the feedback channel name. Using this name, JavaScript can pass data received from equipment to the graphical interface. All feedback processing is performed in scripts.
Tip

Format the command in the Data field according to iRidi syntax so that the program correctly determines how to send your data (as a string, HEX code, or numbers)

AV & Custom Systems (WebSocket)​

The driver is used with media devices, such as Samsung RU/R/Q*R(2019) series TVs.

Tip

AV & Custom Systems (WebSocket) commands can send a data string to equipment in HEX, DEC, or ASCII format.

WebSocket.png

  • Name is the command name. You can use it to call the command from a script;
  • Data is the data sent to equipment by the command. It can be written in HEX, DEC, or ASCII format. Data formatting rules depend on the format;
  • Data type is the type of data sent: *Text accepts text data written in processed form according to iRidi syntax; *Bytes is byte data; *Value as text accepts numeric and text data, including values from graphical items, and sends it as text. For scripts, the .SendText() method accepts text only.

Feedback configuration:

  • Name is the feedback channel name. Using this name, JavaScript can pass data received from equipment to the graphical interface. All feedback processing is performed in scripts.
Tip

Format the command in the Data field according to iRidi syntax so that the program correctly determines how to send your data (as a string, HEX code, or numbers):

ASCII (string)​

Formatting an ASCII string in the Data field:

  • enclose the string in 'single quotation marks'
  • add the following at the end of the string
    • ,$0D is a carriage return <CR>
    • ,$0A is a line feed <LF>

Command formatting:

In the documentation:PWR01 <CR>VOLUME 50 <CR> <LF>
Format:ASCIIASCII
In iRidi (Data field):'PWR01',0x0D'VOLUME 50',0x0D,0x0A

Formatting carriage returns and line feeds:

In the documentation:<CR><CR><CR><LF><LF><LF>
Format:HEXHEXDECHEXHEXDEC
In iRidi (Data field):,0x0D,$0D,13,0x0A,$0A,10

HEX (hexadecimal)​

Formatting HEX characters in the Data field:

  • Prefix each HEX character with 0x or $

  • Remove extra notation before HEX codes, for example: 0Ah >> $0A

  • Separate HEX characters with commas and remove all spaces

  • add the following at the end of the string

    • ,$0D is a carriage return <CR>
    • ,$0A is a line feed <LF>

Command formatting:

In the documentation:16 8A FF 81 <CR>19h EEh A1h 00h <CR> <LF>
Format:HEXHEX
In iRidi (Data field):0x16,0x8A,0xFF,0x81,0x0D$19,$EE,$A1,$00,0x0D,0x0A

Formatting carriage returns and line feeds:

In the documentation:<CR><CR><CR><LF><LF><LF>
Format:HEXHEXDECHEXHEXDEC
In iRidi (Data field):,0x0D,$0D,13,0x0A,$0A,10

DEC (decimal)​

Formatting decimal numbers in the Data field:

  • Separate numbers with commas and remove all spaces
  • add the following at the end of the string
    • ,$0D is a carriage return <CR>
    • ,$0A is a line feed <LF>

Command formatting:

In the documentation:01 255 255 15 <CR>01 10 25 255 <CR> <LF>
Format:DECDEC
In iRidi (Data field):01,255,255,15,1301,10,25,255,13,10

Formatting carriage returns and line feeds:

In the documentation:<CR><CR><CR><LF><LF><LF>
Format:HEXHEXDECHEXHEXDEC
In iRidi (Data field):,0x0D,$0D,13,0x0A,$0A,10

AV & Custom Systems (HTTP)​

AV & Custom Systems (HTTP) driver commands can be sent using one of these methods:

  • GET retrieves. Pass a resource identifier: URI;
  • POST adds, changes, or deletes. Pass a data block;
  • PUT adds or replaces. Pass a data block;
  • DELETE deletes the specified resource;
  • PATCH partially changes a resource.

HTTP commands can be sent using graphical items (described below).

Tip

To send HTTP commands using JavaScript, the specialized method .SendEx is available; you can also use .Set and .Send.

The GET method​

Enter a GET request in the URI field:

  • remove the request portion containing the resource's IP address and port
  • add the request body to URI, including the slash / at the beginning:
    • from the request httр://<host>:<port>/<url>, retain only /<url> in the command's URI field
In the documentation:httр://192.168.0.100:81/cgi-bin/do?cmd=ir_code=B748BF00
In iRidi (URI field):/cgi-bin/do?cmd=ir_code=B748BF00

GETrequestinGUI.png

The POST and PUT methods​

Identify the relevant parts of the request and enter them in URI and Data:

  • enter the resource identifier in URI
  • enter the request body in Data; this may be a large data set. Enclose the entire body in 'single quotation marks'

Example 1:

In the documentation (POST):POST /YamahaRemoteControl/ctrl HTTP/1.1
Accept: /
Accept-Language: ru
Referer: http://192.168.10.102/
Content-Type: text/xml; charset=UTF-8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET
CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; BRI/2)
Host: 192.168.10.100
Content-Length: 105
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: mstnc=1
<YAMAHA_AV cmd="PUT"><System><Power_Control><Power>Standby</Power></Power_Control></System></YAMAHA_AV>
In iRidi (URI field):/YamahaRemoteControl/ctrl
In iRidi (Data field):'<YAMAHA_AV cmd="PUT"><System><Power_Control><Power>Standby</Power></Power_Control></System></YAMAHA_AV>'

Example 2:

In the documentation (POST):POST /WAN/dvdr/dvdr_ctrl.cgi? HTTP/1.1
User-Agent: MEI-LAN-REMOTE-CALL
Host: 192.168.1.105
Content-Length: 39

cCMD_RC_POWER.x=100&cCMD_RC_POWER.y=100
In iRidi (URI field):/WAN/dvdr/dvdr_ctrl.cgi?
In iRidi (Data field):'cCMD_RC_POWER.x=100&cCMD_RC_POWER.y=100'

POSTrequestinGUI.png

AV & Custom Systems (SSH)​

AV & Custom Systems (SSH) driver specifics​

SSH algorithms supported by the AV & Custom Systems (SSH) driver​

Key Exchange Methods:

  • ecdh-sha2-nistp256
  • ecdh-sha2-nistp384
  • ecdh-sha2-nistp521
  • diffie-hellman-group-exchange-sha256
  • diffie-hellman-group16-sha512
  • diffie-hellman-group18-sha512
  • diffie-hellman-group14-sha256
  • diffie-hellman-group14-sha1
  • diffie-hellman-group1-sha1
  • diffie-hellman-group-exchange-sha1

Hostkey Types:

  • ssh-rsa
  • ssh-dss

Ciphers:

  • aes256-ctr
  • aes192-ctr
  • aes128-ctr
  • aes256-cbc (rijndael-cbc@lysator.liu.se)
  • aes192-cbc
  • aes128-cbc
  • 3des-cbc
  • blowfish-cbc
  • cast128-cbc
  • arcfour
  • arcfour128
  • none

MAC hashes:

The following SSH algorithms are officially NOT SUPPORTED by the AV & Custom Systems (SSH) driver​

Key Exchange Methods:

Hostkey Types

  • ssh-ed25519
  • ecdsa-sha2-nistp256
  • ecdsa-sha2-nistp384
  • ecdsa-sha2-nistp521
  • rsa-sha2-512
  • rsa-sha2-256

Ciphers

MAC hashes

AV & Custom Systems (SSH) driver capabilities​

Constructing and sending commands in AV & Custom Systems (SSH) involves the command settings (Command and Add Line Feed), as well as JavaScript.

SSH1.png

  • Command is the data sent to equipment by the command.
  • Add Line Feed automatically adds a line feed when sending a command to a channel (0 is false, 1 is true).

JavaScript uses the characters '\n' and 0x0A for a line feed:


// Send: IR.GetDevice(name).Send([data])
IR.GetDevice("AV & Custom Systems (SSH)").Send(['Command', '\n']);
IR.GetDevice("AV & Custom Systems (SSH)").Send(['Command', 0x0A]);

Custom TCP, UDP, HTTP Network​

Custom TCP Network, Custom UDP Network, Custom HTTP Network are a way to organize AV & Custom Systems drivers that must connect to the same Host and Port. This avoids creating a separate connection channel for each driver and makes it convenient to access driver commands and channels through the JavaScript API. Commands and channels may have identical names; devices within a Network may not.

Only an AV & Custom Systems driver with the same transport as the Network can be added to it.

AVCustumSystems1.png

The Custom Network driver is accessible by its name, like all other drivers. Commands nested in the driver are accessible as:

<device name>:<command name>

For example, add a Custom TCP Network network, place an AV & Custom Systems (TCP) driver named Device 1 in it, and add a Power On command to that driver. Accessing the driver and its commands through JavaScript:


// Set: IR.GetDevice(driver).Set(command, value)
IR.GetDevice("Custom TCP Network").Set("Device 1:Power On", "")

// Send: IR.GetDevice(name).Send([data])
IR.GetDevice("Custom TCP Network").Send(['instruction', '\r\n']);

Sending commands​

You can send a command using a button or a script.

  1. To send a command once, assign it to the When pressed or When released event:

AVCustumSystems2.png

  1. To create a macro command, add multiple commands to When pressed or When released:

AVCustumSystems3.png

You can insert a Delay() delay between commands to regulate how quickly they are sent.

  1. To send a command repeatedly while a button is held, select When pressed and When held:

AVCustumSystems4.png

Hold settings are on the Project > General tab:

  • Hold Time (ms) is the time after which Hold activates when an item is held
  • Repeat Time (ms) is the interval for repeating commands from the Hold event.
  1. Commands can be sent through JavaScript. Use the .Set(), .Send(), or .SendEx(), SendText() methods from Drivers API:

var device = IR.GetDevice("AV & Custom Systems (TCP)");
var HTTP_device = IR.GetDevice("AV & Custom Systems (HTTP)");
var WebSocket_device = IR.GetDevice("WebSocket");
var CommandString = 'comand data /1';
var CommandName = "COMMAND";

IR.AddListener(IR.EVENT_ONLINE , device, function()
{
device.Set(CommandName, ""); // .Set command by name
device.Send([CommandString,0x0D]); // .Send command as string
HTTP_device.SendEx({ // .SendEx command as HTTP-text
Type: "GET",
Url: "/command",
Headers: {
"Connection": "Close",
"Accept-Language": "en",
"Content-Type": "application/json",
"Transfer-Encoding": "chunked",
"Accept": "application/xml;"
},
cbReceiveText: function(text, code, headers) {IR.Log("cbReceiveText "+text);}
});
WebSocket_device.SendText("Hello");
});

IR command formatting for the Send method is described in detail in iTach API.

Feedback​

Feedback from equipment controlled using AV & Custom Systems can only be obtained using JavaScript. This is because the program does not know beforehand which equipment it will connect to, and therefore cannot determine the format or type of data it may receive.

The functions used to process incoming data are described in [Drivers API](Drivers API). They work only with a license supporting feedback from scripted drivers (a "Pro" license). In practice, the license enables the listeners

  • [IR.EVENT_RECEIVE_DATA](Drivers API#IR.EVENT_RECEIVE_DATA) receives data from a device in byte format
  • [IR.EVENT_RECEIVE_TEXT](Drivers API#IR.EVENT_RECEIVE_TEXT) receives data from a device in string format

All other JavaScript methods and events work with any license.

Example of processing incoming data using JavaScript:


var driver = IR.GetDevice("AV (TCP)");
// IR.EVENT_RECEIVE_TEXT makes you able to parse incomming data from equipment
IR.AddListener(IR.EVENT_RECEIVE_TEXT, driver, function(text)
{
// divide the received data by '\r\n' to get the separated strings
var strings = text.split('\r\n');
var string;
while(string = strings.shift())
{
// divide the string into parts with separator comma (it would be space or something else)
var parts = string.split(",");
switch(parts[0])
{
// if the first part of devides string = "#OK"
case "#OK":
// for equuipment it means that we are ready to work
IR.Log("Ready to control!");
break;

// if the first part of devides string = "#RID"
case "#RID":
// the second part should be "ALL", third part shouldn't be empty
if (parts[1] == 'ALL' && parts[2])
{
//devide the third part into 12 parts to know the status on 12 variables we got in this feedback
var slots = parts[2];
for(var i = 0; i < 12; i++)
{
var slot = parseInt(slots.substring(i, i+1));
a_dOutputs[i] = slot;
var fName = "OUT "+(i+1);
// in AV driver we have a preconfigured Feedback channels with name OUT 1 ... OUT 12
//so we can write the received data in this feedbacks and display on items
driver.SetFeedback(fName, slot);
}
}
break;
}
}
});

Example of receiving data in AV & Custom Systems (SSH):


var driver = IR.GetDevice("AV & Custom Systems (SSH)")
IR.AddListener(IR.EVENT_RECEIVE_TEXT, driver ,function(text)
{  IR.SetVariable("Drivers.AV & Custom Systems (SSH).AV Control Feedback", text);
   IR.Log(text);
});

Tip

Additional data packetization parameters are available for an AV & Custom Systems (Serial) connection:

Delimiter_Properties.png

Delimiter allows you to specify special characters that cause received data to be packaged into a string. The delimiter can be a string of any individual characters or combinations. To process line-ending characters in byte representation (0x0A, 0x0D), specify the delimiter in these formats: 0x0D, 0x0A | 0D, 0A | 0D 0A | 0D0A | 0D | 0A .

Packet length sets a fixed packet length, specified as the number of characters in a string (the default is 0, which disables the function). For example, if Packet Length is set to 6 characters, every 6 characters received at the serial port are packaged into a separate string.

Interval time (ms) allows data to be sent to a string when a pause is detected in the data stream. The user specifies the pause duration in milliseconds (ms); the default is 100 ms (a value of 0 means unlimited waiting time).

All data received before a pause in the stream equal to the user-specified duration is packaged into a single separate string.

When all three parameters or several of them are used together, data is packaged into a string when any one of them is triggered. For example, if the specified data size is reached before the specified delimiter arrives, the data is formed according to the specified size, and so on.

Copying data​

All or part of the data from an AV & Custom Systems driver can be copied and pasted into the same project or any other existing project.

You can copy:

  • the entire driver,
  • subdevices,
  • commands and feedbacks.

To copy, use Copy in the right-click menu or the keyboard shortcut Ctrl+C .

Paste copied items into the required area using Paste in the right-click menu or the keyboard shortcut Ctrl+V .

AVCustumSystems6.png

Important
  • Drivers can be copied between projects of the same or different types (Panel Project / server project).
  • Commands and feedbacks can only be copied between projects of the same type (between Panel Projects or between server projects) into identical drivers.
  • Copying tags does not preserve their links to items; only configuration parameters are transferred.

Saving and using the created driver

You can save the created AV & Custom Systems driver as a template in the Images panel. Drivers saved this way are conveniently located in one section accessible from Studio.

  1. Open Images .

  2. Left-click an empty area in the folder window and create a new folder for future drivers (AV & Custom Systems drivers in our example).

  3. Hold the left mouse button on the project folder in the page management panel and drag it to the AV & Custom Systems drivers folder storage area. Your driver will be saved and available from this folder in subsequent projects.

AV_save1.png

To use it in a new project, drag it into the workspace from the AV & Custom Systems driver folder storage area.

AV_save2.png